#ifndef ROOM_H_INCLUDED
#define ROOM_H_INCLUDED

#include <fstream>
#include <string>
#include <map>
#include "./../Character/User.h"


using namespace std;

struct RoomInformation
{
	string descript;
	RoomInformation()
	{
		descript = "DESCRIPT";
	}
};

class room
{
    public:
        room(string);
        ~room();
        bool isLoadSuccess;
		static RoomInformation RoomInfo;
		static bool init();
		static bool loadRoom(string);
		static bool MoveInto(string, User*);
		static void BroadcastMsg(User*, string, string);
		static string whereIsTheUser(string);
		static void dump(string);
    private:
		bool PutIntoHashTable(char[255]);
		static room* GetRoomFromStrRoom(string);

		map<string, string> RoomData;
		string lastcmd;
		map<string, User*> RoomMember;
    protected:
};


#endif // ROOM_H_INCLUDED
